<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>绑定微信</title>

    <link rel="stylesheet" type="text/css" href="../../css/api.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/yzl.css"/>


</head>
<body>
<div id="blank" class="header" >
    <div v-back class="back"></div>
    <span class="title">绑定微信</span>
</div>
<div id="app" class="main-container">
    <div class="cashManageBind-input-container">
        <div class="cashManageBind-input-row">
            <span>微信帐号: </span>
            <input v-model="id" placeholder="请输入">
        </div>
        <div class="cashManageBind-input-row">
            <span>微信姓名: </span>
            <input v-model="name" placeholder="请输入">
        </div>
    </div>
    <div class="btn-commit" :style="{backgroundColor:btnBg}">提交</div>
</div>
</body>
<script src="../../script/api.js"></script>
<script src="../../script/vue.js"></script>
<script src="../../script/app.js"></script>
<script>
    new Vue({
        el: '#app',
        data: {
            id:'',
            name:'',
            btnBg:'#cccccc'
        },
        methods:{
            changeBtnBg:function () {
                if(this.id && this.name){
                    this.btnBg = '#33375E'
                }else{
                    this.btnBg = '#cccccc'
                }
            }
        },
        watch: {
            id: function () {
                this.changeBtnBg();
            },
            name: function () {
                this.changeBtnBg();
            }
        }
    });

    new Vue({
        el:'#blank'
    })
</script>
</html>
